import path from 'path';
import SVGIcons2SVGFontStream, { MetadataOptions } from 'svgicons2svgfont';
import { ConverterOptions } from './types';

const DefaultSVGConvertOptions: SVGIcons2SVGFontStream.SvgIcons2FontOptions = {
    fontName: 'svg-icon-font',
    fixedWidth: false,
    fontHeight: 1000,
    normalize: true,
};

const DefaultFontConvertOptions: ConverterOptions = {
    formDir: './logos/**/*.svg',
    outDir: './dist/static/fonts',
    fontName: 'svg-icon-font',
    fontExts: ['ttf', 'eof', 'woff', 'woff2'],

    cssFileOption: {
        isGenerate: true,
        templatePath: path.join(__dirname, '../', 'template', 'svg-to-css.njk'),
    },
};

const DefaultSVGMetadataOptions: MetadataOptions = {
    prependUnicode: false,
    startUnicode: 0xea01,
};

export { DefaultSVGConvertOptions, DefaultSVGMetadataOptions, DefaultFontConvertOptions };
